Why did the detective bring a pencil?

Because he wanted to draw conclusions.